package com.ruoyi.miaomiao.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车管理对象 f_trolley
 * 
 * @author ruoyi
 * @date 2022-07-26
 */
@ApiModel(value = "购物车对象", description = "购物车对象的属性描述")
public class Trolley extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车id（按商品记录） */
    @ApiModelProperty(value = "购物车id", name = "trolleyId", example = "9000000001")
    private Long trolleyId;

    /** 所属用户id */
    @ApiModelProperty(value = "所属用户id", name = "userId", example = "100000001")
    @Excel(name = "所属用户id")
    private Long userId;

    /** 商品id */
    @ApiModelProperty(value = "商品id", name = "goodId", example = "123456791")
    @Excel(name = "商品id")
    private Long goodId;

    /** 所加商品数量 */
    @ApiModelProperty(value = "所加商品数量", name = "goodNumber", example = "99")
    @Excel(name = "所加商品数量")
    private Long goodNumber;

    /** 更新人 */
    @ApiModelProperty(value = "更新人", name = "updater", example = "admin")
    @Excel(name = "更新人")
    private String updater;

    /** 停用状态（1-正常，0-停用） */
    @ApiModelProperty(value = "停用状态", name = "trolleyStatu", example = "1-正常，0-停用")
    @Excel(name = "停用状态", readConverterExp = "1=-正常，0-停用")
    private String trolleyStatu;

    public void setTrolleyId(Long trolleyId) 
    {
        this.trolleyId = trolleyId;
    }

    public Long getTrolleyId() 
    {
        return trolleyId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setGoodId(Long goodId) 
    {
        this.goodId = goodId;
    }

    public Long getGoodId() 
    {
        return goodId;
    }
    public void setGoodNumber(Long goodNumber) 
    {
        this.goodNumber = goodNumber;
    }

    public Long getGoodNumber() 
    {
        return goodNumber;
    }
    public void setUpdater(String updater) 
    {
        this.updater = updater;
    }

    public String getUpdater() 
    {
        return updater;
    }
    public void setTrolleyStatu(String trolleyStatu) 
    {
        this.trolleyStatu = trolleyStatu;
    }

    public String getTrolleyStatu() 
    {
        return trolleyStatu;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("trolleyId", getTrolleyId())
            .append("userId", getUserId())
            .append("goodId", getGoodId())
            .append("goodNumber", getGoodNumber())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updater", getUpdater())
            .append("trolleyStatu", getTrolleyStatu())
            .toString();
    }
}
